{% extends 'login_base.html' %}

{% block title %}登录{% endblock %}

{% block bg %}bg.jpg{% endblock %}

{% block nav %}{% endblock %}

{% block content %}

    <div class="login_container">
        <div class="login_div">
            <h4>登录</h4>
            <form action="/login_forms/" method="post">
                {% csrf_token %}
                <p><label for="username"></label><input type="text" id="username" placeholder="用户名" name="username"></p>
                <p><label for="password"></label><input type="password" id="password" placeholder="密码" name="password"></p>
                <input type="submit" value="登录">
            </form>
            <p class="error">{{ error_info }}</p>
            <a href="/register/">注册</a>
        </div>
    </div>

{% endblock %}